package web;


import spring.cloud.tasks.client.Client;
import spring.cloud.tasks.client.item_task_processor.Task;

import javax.servlet.http.HttpServletRequest;

public class scheduleStrategyEdit {
    public static void main(String[] args) throws Exception {
        HttpServletRequest request = null;
        String isManager = request.getParameter("workerManager");
        String taskScheduleInfoId = request.getParameter("taskId");
        Task task = Client.getZooKeeperItemTaskDataManager().loadTask(taskScheduleInfoId);
        boolean isNew = false;
        String actionName = "editScheduleStrategy";
        String editSts = "";
        String ips = "";
        if (task != null) {


            editSts = "style=\"background-color: blue\" readonly=\"readonly\"";
        } else {
            task = new Task();
            //
            task.setTaskId("");

            //
            task.setTaskId("");
            task.setTaskParameter("");
            //

            task.setTotalProcessorCount(2);
            task.setThreadCountPerTaskProcessor(5);
            ips = "127.0.0.1";

            isNew = true;
            actionName = "createTask";
        }
        System.out.println("��������:" + task.getTaskId());//������д�����������ĺ������ַ�
        System.out.println("��������:" + task.getTaskId());
        System.out.println("�������:" + task.getTaskParameter());//���ŷָ���Key-Value�� ����������ΪSchedule����Ч����Ҫͨ��������������õ�
        System.out.println("IP��ַ(���ŷָ�)��" + task.getIpList());

        System.out.println("����߳�������:" + task.getTotalProcessorCount());//���з������ܹ����е��������
    }
}